import { createApp } from "vue";
import App from "@/App.vue";
import installElementPlus from "@/plugins/element";
import router from './router'
import store from './store'
import "@/styles/index.scss"

const app = createApp(App);

installElementPlus(app);

import './authorization'

// 引入svg图标注册脚本
// import 'vite-plugin-svg-icons-register'

// 注册全局组件
import * as Components from './components'
Object.entries(Components).forEach(([key, component]) => {
    app.component(key, component)
})

app.use(router)
app.use(store)
app.mount("#app");
